package com.zds.scm.dao;

import java.util.List;

import com.zds.scm.common.dao.CommonDAO;
import com.zds.scm.domain.TeacherInfo;

public interface TeacherInfoDAO extends CommonDAO<TeacherInfo> {
    /**
     * 分页查询所有教师信息
     * @param currentPage
     * @param pageSize
     * @return
     */
    public List<TeacherInfo> findAll(int currentPage,int pageSize);
	/**
	 * 总的记录数
	 * @return
	 */
	public int getTotalRows();
    /**
	 * 根据系别查询该系别下的老师
	 * @param DeptCode
	 * @return
	 */
    public List<TeacherInfo> findByDeptCode(String DeptCode,int currentPage,int pageSize);
	/**
	 * 总的记录数,查询该系别下的老师
	 * @return
	 */
	public int getTotalRowsByDeptCode(String DeptCode);
    /**
     * 根据教师名称信息模糊查询
     * @param likeTeacherName
     * @return
     */
    public List<TeacherInfo> findByName(String likeTeacherName,int currentPage,int pageSize);
    /**
	 * 总的记录数,名称信息模糊查询
	 * @return
	 */
	public int getTotalRowsByName(String likeTeacherName);
    /**
     * 根据教师工号信息模糊查询
     * @param likeTeacherName
     * @return
     */
    public List<TeacherInfo> findByCode(String likeTeacherCode,int currentPage,int pageSize);
    /**
	 * 总的记录数,工号信息模糊查询
	 * @return
	 */
	public int getTotalRowsByCode(String likeTeacherCode);
}
